import { NetWorkConfig } from './network.config';
// import axios from 'axios';
const axios = require('axios');
// 搜索参数
export class DataCloudSearchArgs{

  constructor(){
    this.SydwName='';
    this.GasId=null;
    this.offset=0;
    this.num=10;
  }

}

const BASE_URL = NetWorkConfig.BackendUrl + ':' + NetWorkConfig.BackendPort+'/data-cloud'
export async function serachDataCloudList(
  searchArgs=new DataCloudSearchArgs()
) {
  try {
    const res=await axios({
      method:'get',
      url:BASE_URL+'/search-list',
      params:{
        ...searchArgs
      },
      withCredentials:false
    })
    return res;
   }
  catch (error) {
    console.error(error)
  }
}
